package com.example.newdemo.utils.timeUtils;

import java.util.Date;

public class TimeDemo {

    //1954-04-19T00:00:00
    static String time01="2018-08-09T16:40:30";
    static String time02="2018-08-09 16:40:30";

    public static void main(String[] args) {

        Date date1=TimeAndDateUtils.dateStringToDate(time01,TimeEnum.YYYYMMDD_T_HHMMSS);

        int month=TimeAndDateUtils.getMonth(date1);

        System.out.println("  月份：   "+month);

        String dateString01=TimeChangeDateFormatUtils.changeDateStringFormat(date1,TimeEnum.YYYYMMDD_HHMMSS);
        System.out.println(dateString01);


    }






}
